home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 2 / AACD 2.iso / AACD / Magazine / GraphicsCards / StormMesa / src / Makefile.DJ < prev    next >
Makefile  |  1999-02-04  |  2KB  |  88 lines

  1. # Makefile for core library for MS-DOS using djgpp
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  2.4
  5. # Copyright (C) 1995-1997  Brian Paul
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  
  22. # $Id:$
  23.  
  24. # $Log:$
  25.  
  26.  
  27. ##### MACROS #####
  28.  
  29. VPATH = RCS
  30.  
  31. INCDIR = ../include
  32. LIBDIR = ..\lib
  33.  
  34. # Want UniVBE (Display Doctor) Support, Scitech Software www.scitechsoft.com
  35. # Set -I to point to scitech include files.
  36. # Haven`t finished doing univbe version for djgpp
  37. #CFLAGS += -DUNIVBE -D__DOS__ -D__MSDOS32__ -IC:\scitech\include
  38. CFLAGS +=  -D__DOS__ -D__MSDOS32__
  39.  
  40. CORE_SOURCES = accum.c alpha.c alphabuf.c api1.c api2.c attrib.c bitmap.c \
  41.     blend.c clip.c colortab.c context.c copypix.c depth.c \
  42.     dlist.c drawpix.c enable.c eval.c feedback.c fog.c \
  43.     get.c hash.c image.c light.c lines.c logic.c masking.c matrix.c \
  44.     misc.c mmath.c pb.c pixel.c points.c pointers.c polygon.c \
  45.     quads.c rastpos.c readpix.c rect.c scissor.c shade.c span.c \
  46.     stencil.c teximage.c texobj.c texstate.c texture.c triangle.c \
  47.     varray.c winpos.c vb.c vbfill.c vbrender.c vbxform.c xform.c
  48.  
  49. DRIVER_SOURCES = dosmesa.c
  50.  
  51. SOURCES = $(CORE_SOURCES) $(DRIVER_SOURCES)
  52.  
  53. OBJECTS = $(SOURCES:.c=.o)
  54.  
  55. #CFLAGS += -g
  56.  
  57. ##### RULES #####
  58.  
  59. .c.o:
  60.     gcc -c -DDOSVGA -I$(INCDIR) $(CFLAGS) $<
  61.  
  62. ##### TARGETS #####
  63.  
  64. GL_LIB = dosmesa.a
  65.  
  66. default: $(LIBDIR)/$(GL_LIB)
  67.  
  68. clean:
  69.     -del *.o
  70.  
  71. MAKELIB = AR ruv
  72. RANLIB = ls
  73.  
  74. # Make the library
  75. $(LIBDIR)/$(GL_LIB): $(OBJECTS)
  76.     $(MAKELIB) $(GL_LIB) $(OBJECTS)
  77.     copy $(GL_LIB) $(LIBDIR)\$(GL_LIB)
  78.  
  79. include depend.dos
  80. #
  81.  
  82. # Run 'make depend' to update the dependencies if you change what's included
  83. # by any source file.
  84. #
  85. dep: $(SOURCES)
  86.     makedep -fdepend -Y -I../include $(SOURCES)
  87.  
  88.